import request from '../utils/request';
//字典
// 获取单位性质
export const getNature = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/company_nature')
}
// 产业
export const getIndustry = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/industry')
}
// 地区
export const getArea = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/area')
}
// 规模
export const getScale = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/scale')
}
// 货币
export const getAmountUnit = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/amount_unit')
}
// 公司福利
export const getAllure = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/allure')
}
// 证件类型
export const getIDType = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/id_type')
}
// 通过code获取字典
export const findDictByCode = code => {
    return request.get('/zsrencai/api/sys/admin/dict/find/' + code)
}
// 企业注册
export const addCompany = query => {
    return request.post('/zsrencai/api/company/company/add', query)
}
// 获取行业
export const findTradeDict = () => {
    return request.get('/zsrencai/api/sys/admin/tc/find/tree')
}
// 获取企业信息
export const selectCompanyByUserId = () => {
    return request.post('/zsrencai/api/company/company/selectcompanybyuserid')
}
// 1.企业注册时调用根据企业名称精确查询是否有企业信息:
// http://localhost:8100/zsrencai/api/company/company/query/info/byname
// post请求
// formdata传参方式: 参数companyName
export const checkName = query => {
    return request.post('/zsrencai/api/company/company/query/info/byname', query)
}
// token
export const token = () => {
    return request.post('/zsrencai/api/company/company/selectcompanybyuserid')
}